package com.ag.bean;

import java.util.HashSet;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

/**
 * TbWorkDay entity.
 * 
 * @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "TB_WORK_DAY", schema = "dbo", catalog = "AGDB")
public class TbWorkDay implements java.io.Serializable {

	// Fields

	private String wdId;
	private String wdType;
	private String a;
	private String b;
	private String c;
	private Set<TbDuty> tbDuties = new HashSet<TbDuty>(0);

	// Constructors

	/** default constructor */
	public TbWorkDay() {
	}

	/** minimal constructor */
	public TbWorkDay(String wdId, String wdType) {
		this.wdId = wdId;
		this.wdType = wdType;
	}

	/** full constructor */
	public TbWorkDay(String wdId, String wdType, String a, String b, String c,
			Set<TbDuty> tbDuties) {
		this.wdId = wdId;
		this.wdType = wdType;
		this.a = a;
		this.b = b;
		this.c = c;
		this.tbDuties = tbDuties;
	}

	// Property accessors
	@Id
	@Column(name = "WD_ID", unique = true, nullable = false, length = 4)
	public String getWdId() {
		return this.wdId;
	}

	public void setWdId(String wdId) {
		this.wdId = wdId;
	}

	@Column(name = "WD_TYPE", nullable = false, length = 12)
	public String getWdType() {
		return this.wdType;
	}

	public void setWdType(String wdType) {
		this.wdType = wdType;
	}

	@Column(name = "A", length = 20)
	public String getA() {
		return this.a;
	}

	public void setA(String a) {
		this.a = a;
	}

	@Column(name = "B", length = 20)
	public String getB() {
		return this.b;
	}

	public void setB(String b) {
		this.b = b;
	}

	@Column(name = "C", length = 20)
	public String getC() {
		return this.c;
	}

	public void setC(String c) {
		this.c = c;
	}

	@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "tbWorkDay")
	public Set<TbDuty> getTbDuties() {
		return this.tbDuties;
	}

	public void setTbDuties(Set<TbDuty> tbDuties) {
		this.tbDuties = tbDuties;
	}

}